New project, one object, one event, Build and Play - the whole loop once, before anything else in this manual.
An object that moves when you hold the d-pad, in a room you can Build & Play into your emulator - not a finished game, but every piece of the loop this whole manual keeps coming back to: a project, an object, an event, and a build.
Build & Play needs Gbabel opened over its own local server (Launch GBAB.bat) - from a file:// page there is no server to run a compiler for it, and the build says so instead of starting. It also needs File → Setup to know where devkitPro, the Game Boy Advance module and Python live on this machine; if it does not, the build stops before doing anything and opens Setup for you. Both are one-time, and neither is needed to write code and read it back - only to turn it into a ROM.
New project copies one of Gbabel's own templates into a folder you pick, gives it a fresh project id, and opens it - pick Top-down for this walkthrough, since it already has a moving player object to look at. (Empty is the other option: one room, one object with a Create and a Step event, and nothing else - a blank slate rather than something to read. It has no sprite, so a ROM built from it boots to a black screen on purpose; see step 3's own note if you start there.) Open project works the same way for a project you already have; either way, Gbabel needs an actual folder on disk, because a project's objects, rooms and scripts are real files in it, not something stored inside the tool itself - see What goes into the ROM for the same tool/project separation from a different angle. The in-editor Help Center's own "Opening a project" topic covers this same first step from the tool's own side.
Click 🧩 Code. The project browser on the left already lists the template's own objects - obj_player is the one that moves. Click it to open the object editor.
The template's obj_player already has a Step event, since that is where per-frame movement belongs - see Events in the editor for how the + Add Event button under Events adds one, and Events for what Step actually means. Open it. The first four lines are the movement, and they are the whole idea:
var dx = btn_dx() * 2;
var dy = btn_dy() * 2;
if (dx != 0 && pos_free(x + dx, y, obj_wall)) { x += dx; }
if (dy != 0 && pos_free(x, y + dy, obj_wall)) { y += dy; }btn_dx and btn_dy read the d-pad as -1, 0 or 1 on each axis, so all eight directions - and standing still - fall out of those two lines with no separate diagonal case to write. * 2 is the speed in pixels per frame; change the 2 and the player changes pace. pos_free asks "could I stand here without overlapping a solid obj_wall?", and asking it one axis at a time is what makes this a slide rather than a stop: run diagonally into a wall and the other axis still gets through.
The rest of the file keeps the player inside the room and collects pickups; read it top to bottom if you like, every line in it is commented. A tour of the Top-down template walks the whole project, object by object.
Starting from Empty instead? Its one object, obj_empty, already has a Step event - open it rather than adding one - and this walkthrough's version is deliberately smaller than the template's: no walls to check against, so no pos_free, just the two axis reads applied straight to this instance's own position.
x += btn_dx() * 2;
y += btn_dy() * 2;That really does move the instance every frame. You will not see it move, though: obj_empty ships with no sprite, so there is nothing on screen to watch - give it one (the object editor's Sprite field, plus an asset under assets/sprites/) and instances draw themselves from then on, with no drawing code needed. If you would rather watch something move first and read later, that is what Top-down is for.
Ctrl+B, or ▶ Build & Play in the toolbar. This saves the project, checks every object and script, checks the open room against the hardware's own budgets, generates and stages a real Game Boy Advance project, builds it, and launches your configured emulator with the result - see Building and reading its problems for what you see if something does not compile instead. The first build of a session is the slow one (a real C++ compile); after that, only what actually changed gets rebuilt.
The Code tab covers the editor you were just in properly; Rooms, tiles and tile animation and The Paths tab cover placing more than one object and giving one a patrol; A tour of the top-down template walks the whole project you just opened, object by object, if Top-down is the one you picked.